home *** CD-ROM | disk | FTP | other *** search
/ Invisible Universe / Invisible Universe (1995)(Voyager)[Mac-PC].iso / mac / MOVIES / TOC.DIR / 00002_Script_2 < prev    next >
Text File  |  1995-11-21  |  19KB  |  761 lines

  1. on startMovie
  2.   global gCom
  3.   global gNavPalette, gGlossPalette--, gCursor  
  4.   
  5.   set the exitLock = 1
  6.   
  7.   --set the keyDownScript to "checkKeyDowns"
  8.   
  9.   put char 1 of the movieName = "O" into gCOM
  10.   
  11.   --put ">>>local startMovie" && the movie
  12.   startTimer
  13.   
  14.   --  set dontChangeCursor = (gCursor = 4)
  15.   --  set gCursor = 4
  16.   --  cursor gCursor
  17.   
  18.   cursor 4
  19.   
  20.   checkColor
  21.   --put ">>>checkColor" && the timer/60.0
  22.   
  23.   checkQT
  24.   --put ">>>check QT" && the timer/60.0
  25.   
  26.   --MemoryWaterMark "before initialize"
  27.   initialize
  28.   --MemoryWaterMark "after initialize"
  29.   
  30.   --put ">>>initialize" && the timer/60.0
  31.   
  32.   
  33.   bigOpening
  34.   --put ">>>bigOpenning" && the timer/60.0  
  35.   
  36.   --  if voidP(gGlossPalette) then 
  37.   --    createGlossPalette 
  38.   --  end if
  39.   --  
  40.   updateStage
  41.   --  
  42.   if voidP(gNavPalette) then 
  43.     createNavPalette   
  44.   end if
  45.   
  46.   --  if not dontChangeCursor then
  47.   --    set gCursor = -1
  48.   --    cursor gCursor
  49.   --  end if
  50.   
  51.   cursor -1
  52.   
  53.   --put the timer/60.0
  54.   
  55.   --soundFadeIU
  56.   
  57. end startMovie
  58.  
  59. on checkColor
  60. end checkColor
  61.  
  62. on checkQT
  63. end checkQT
  64.  
  65. on initialize
  66.   
  67.   --MemoryWaterMark "before setGlobalVariables"
  68.   setGlobalVariables
  69.   --MemoryWaterMark "after setGlobalVariables"
  70.   
  71.   setLocalVariables
  72.   --put ">>>setLocalVariables" && the timer/60.0 
  73.   
  74.   --MemoryWaterMark "before setButtonTrios"
  75.   setButtonTrios
  76.   --MemoryWaterMark "after setButtonTrios"
  77.   
  78.   --put ">>>setButtonTrios" && the timer/60.0 
  79.   
  80.   --MemoryWaterMark "before setPreloads"
  81.   setPreloads
  82.   --MemoryWaterMark "after setPreloads"
  83.   --put ">>>setPreloads" && the timer/60.0 
  84.   
  85.   set the preLoadEventAbort to true
  86. end initialize
  87.  
  88. on setGlobalVariables
  89.   --put ">>>set global variables start=" & the timer/60.0
  90.   global gLabels,gO, gNavIdleTicks, gNonVisibleSingles  
  91.   if voidP(gLabels) then  
  92.     
  93.     if the machineType <> 256 then openXlib "I MaxMem"
  94.     
  95.     openPopMenu
  96.     
  97.     set gNavIdleTicks = 0
  98.     
  99.     set gNonVisibleSingles to value(field "NonVisibleSingles")
  100.     
  101.     set gLabels to [:]
  102.     set gO to value(field "O.DIR")
  103.     
  104.     if 0 then
  105.       
  106.       set theMovies to  value(field "The Movies")
  107.       
  108.       repeat with i= 1 to count(theMovies)
  109.         -- --put ">>> movie " & i 
  110.         set movieLabels to value(field getAt(theMovies,i))
  111.         --put ">>> movie labels: " & MovieLabels
  112.         if MovieLabels <> 0 then -- dmd added this because starmap.dir was empty
  113.           repeat with j = 1 to count(movieLabels)
  114.             addProp gLabels,getPropAt(movieLabels,j),getAt(movieLabels,j)
  115.           end repeat
  116.         end if
  117.       end repeat
  118.     else      
  119.       repeat with i= 1064 to 1070
  120.         -- --put ">>> movie " & i 
  121.         set movieLabels to value(field i)
  122.         --put ">>> movie labels: " & MovieLabels
  123.         if MovieLabels <> 0 then -- dmd added this because starmap.dir was empty
  124.           repeat with j = 1 to count(movieLabels)
  125.             addProp gLabels,getPropAt(movieLabels,j),getAt(movieLabels,j)
  126.           end repeat
  127.         end if
  128.       end repeat
  129.     end if
  130.     
  131.     --dmd do we need the sorts?
  132.     
  133.     --put ">>>set global variables before sort =" & the timer/60.0
  134.     
  135.     --sort gO
  136.     --put ">>>set global variables after sort gO =" & the timer/60.0
  137.     --sort gLabels
  138.     --put ">>>set global variables after sort =" & the timer/60.0
  139.   end if
  140.   
  141. end setGlobalVariables
  142.  
  143. on setLocalVariables
  144.   global gPoemIsPlaying, gVolume
  145.   global gCurrChan,gFirsChan,gLastChan,gPrevHilite
  146.   global gFiorellaOnStage, gTOCRetraceChan, gRetraceCount
  147.   
  148.   put false into gFiorellaOnStage
  149.   
  150.   -- dmd NOTE: the use of 9 here is bad because it is a number and not a symbol
  151.   -- secondly, the use of this channel for the purpose of the retrace button is not
  152.   -- well formed. This results in the channel being non-visble for other sections that
  153.   -- use the channel for other purposes. For now I will have to put create a global 
  154.   -- called retrace channel, and force it to visible when this section is left.
  155.   set gTOCRetraceChan = 16
  156.   
  157.   if voidP(gRetraceCount) then 
  158.     set gRetraceCount = 0
  159.     
  160.     if voidP(gVolume) then put 7 into gVolume
  161.     
  162.   end if
  163.   
  164.   set the visible of sprite gTOCRetraceChan to (gRetraceCount > 0)
  165.   --put ">>> retrace button is: " & (gRetraceCount > 0)
  166.   
  167.   --put "Retrace set to : " & (gRetraceCount > 0)
  168.   
  169. end setLocalVariables
  170.  
  171. on bigOpening
  172. end bigOpening
  173.  
  174. on stopMovieXXX
  175.   global oPop
  176.   if objectP(oPop) then
  177.     oPop(mDispose)
  178.     if the machineType = 256 then 
  179.       --closeXLib "POPMENU.DLL" 
  180.       --else 
  181.       --closeXLib "PopUp Menu XObj"
  182.     end if
  183.   end if
  184.   unload
  185. end stopMovie
  186.  
  187. -----
  188. on setButtonTrios
  189.   global gCBL
  190.   if voidP(gCBL) then 
  191.     --setContentsButtons
  192.     --put ">>>contents buttons" && the timer/60.0
  193.     --setPoemButtons
  194.     --put ">>>Poem buttons" && the timer/60.0
  195.   end if
  196. end setButtonTrios
  197.  
  198.  
  199.  
  200. --showhilite,2,307
  201.  
  202. on showHiliteNew firstSprite, endSprite, firstLine, propList, special
  203.   global gFadeOutP, gTOCRetraceChan 
  204.   --global, gContRetrace
  205.   
  206.   --put ">>>showHiLiteNew: " & firstSprite, endSprite, firstLine, propList, special
  207.   
  208.   --- tbd ???
  209.   -- dmd improve this, on each idle knock the volume down a bit over time.
  210.   
  211.   set m = the movie
  212.   set f = the frame
  213.   testOverheadMenu
  214.   if f <> the frame or m <> the movie then exit
  215.   
  216.   if special = 1 then
  217.     if the mouseH < 558 or the mouseV < 423 then exit  
  218.   end if
  219.   
  220.   
  221.   
  222.   --if gFadeOutP then soundFadeIdleIU
  223.   
  224.   --put "cast 2: showHilite", btnList, firstC, lastC
  225.   repeat with spriteNum = firstSprite to endSprite
  226.     
  227.     if the commandDown or (the controlDown and the machineType = 256) then exit repeat
  228.     
  229.     if spriteNum <> firstSprite then
  230.       if rollOver(spriteNum - 1) then set spriteNum = spriteNum - 1
  231.     end if
  232.     
  233.     if rollOver(spriteNum) then
  234.       --put ">>>roll over " & i
  235.       
  236.       --put firstLine, spriteNum, firstSprite
  237.       
  238.       set lineNum = firstLine + spriteNum - firstSprite
  239.       set theLine = line lineNum of field propList
  240.       
  241.       
  242.       put the castNum of sprite spriteNum into theDullSprite
  243.       
  244.       --- tbd
  245.       
  246.       --      set gBTNLST = btnList
  247.       --      set gI = i
  248.       --      
  249.       
  250.       rolloNew(theLine)
  251.       
  252.       repeat while rollOver(spriteNum)
  253.         if the commandDown or (the controlDown and the machineType = 256) then exit repeat
  254.         
  255.         if the mouseDown then
  256.           --put ">>> about to press it cast 2" 
  257.           
  258.           if item 2 of theLine = "gContRetrace" then 
  259.             --beep
  260.             exit
  261.           end if
  262.           
  263.           pressNew(theLine) 
  264.           --set the visibility of sprite gTOCRetraceChan = 1
  265.           
  266.           --put ">>> calling do script"
  267.           
  268.           if special <> 2 then
  269.             set the castNum of sprite spriteNum to theDullSprite
  270.             puppetSprite spriteNum,false
  271.             doScriptNew(theLine)
  272.           else
  273.             set theMovie = the movie  
  274.             
  275.             doScriptNew(theLine)
  276.             
  277.             if theMovie = the movie then            
  278.               updateStage
  279.               set the castNum of sprite spriteNum to theDullSprite
  280.               puppetSprite spriteNum,false
  281.             end if
  282.             
  283.           end if
  284.           
  285.           --put ">>> about to exit handler showhilite via exit command" 
  286.           exit
  287.         end if
  288.         
  289.         if special=1 then
  290.           if the mouseH < 558 or the mouseV < 423 then exit repeat
  291.         end if
  292.         
  293.       end repeat
  294.       --normNew(theLine)
  295.       
  296.       set the castNum of sprite spriteNum to theDullSprite
  297.       puppetSprite spriteNum,false
  298.       updateStage
  299.       -- ???     if spriteNum <> firstSprite then set spriteNum = spriteNum - 1
  300.     end if
  301.     
  302.     
  303.     
  304.     --put ">>>end rollover loop"
  305.   end repeat
  306.   --put  ">>> exiting showhilite"
  307. end showHiliteNew
  308.  
  309.  
  310. on SpecialRollOver startC, endC
  311.   set int = 0
  312.   
  313.   puppetSprite 40,1
  314.   set the locV of sprite 40 = the mouseV
  315.   set the locH of sprite 40 = the mouseH
  316.   updateStage
  317.   
  318.   repeat with i = startC to endC
  319.     if sprite 40 intersects i then 
  320.       set int = i
  321.       exit repeat
  322.     end if
  323.   end repeat
  324.   
  325.   puppetSprite 40, 0  
  326.   
  327.   return int
  328. end
  329.  
  330.  
  331. --
  332. --
  333. -- The button list, the intersecting sprite and the offset to the art
  334. -- from the cover
  335. --
  336.  
  337. on showHilite2New lineNo, spriteNum, offsetToArt, fieldNo
  338.   global gFadeOutP, gTOCRetraceChan, gContRetrace
  339.   
  340.   --- tbd ???
  341.   -- dmd improve this, on each idle knock the volume down a bit over time.
  342.   
  343.   --if gFadeOutP then soundFadeIdleIU
  344.   
  345.   set i = spriteNum + offsetToArt
  346.   
  347.   put the castNum of sprite i into theDullSprite
  348.   
  349.   set theLine = line lineNo of field fieldNo
  350.   
  351.   rolloNew(theLine)
  352.   
  353.   repeat while SpecialRollOver(spriteNum,spriteNum)
  354.     
  355.     if the commandDown or (the machineType = 256 and the controlDown) then 
  356.       exit repeat
  357.     end if
  358.     
  359.     if the mouseDown then
  360.       --put ">>> about to press it cast 2" 
  361.       
  362.       pressNew(theLine) 
  363.       --set the visibility of sprite gTOCRetraceChan = 1
  364.       
  365.       --put ">>> calling do script"
  366.       set the castNum of sprite i to theDullSprite
  367.       puppetSprite i,false
  368.       
  369.       doScriptNew(theLine)
  370.       --put ">>> about to exit handler showhilite via exit command" 
  371.       exit
  372.     end if
  373.     
  374.   end repeat
  375.   
  376.   --normNew(theLine)
  377.   set the castNum of sprite i to theDullSprite
  378.   puppetSprite i,false
  379.   
  380.   --put ">>>end rollover loop"
  381.   updateStage
  382.   
  383.   --put  ">>> exiting showhilite"
  384. end showHilite2New
  385.  
  386.  
  387. --
  388. --
  389. -- The button list, the intersecting sprite and the offset to the art
  390. -- from the cover
  391. --
  392.  
  393. on showHilite2 btnList, spriteNum, offsetToArt
  394.   global gFadeOutP, gTOCRetraceChan, gContRetrace
  395.   
  396.   asdf
  397.   
  398.   --- tbd ???
  399.   -- dmd improve this, on each idle knock the volume down a bit over time.
  400.   
  401.   --if gFadeOutP then soundFadeIdleIU
  402.   
  403.   set i = spriteNum + offsetToArt
  404.   
  405.   put the castNum of sprite i into theDullSprite
  406.   
  407.   put getProp(btnList,i) into it
  408.   
  409.   -- instantiate the object
  410.   
  411.   if listP(it) then
  412.     set it = string(it)
  413.     set len = the length of it
  414.     set it = char 2 to len - 2 of it
  415.     set str = "set it = birth("  & it & ")"
  416.     do str
  417.     --put ">>> " &str
  418.     setProp btnList, i, it
  419.   end if
  420.   
  421.   rollo(it)
  422.   
  423.   repeat while SpecialRollOver(spriteNum,spriteNum)
  424.     if the mouseDown then
  425.       --put ">>> about to press it cast 2" 
  426.       
  427.       press(it) 
  428.       --set the visibility of sprite gTOCRetraceChan = 1
  429.       
  430.       --put ">>> calling do script"
  431.       doScript(it)
  432.       --put ">>> about to exit handler showhilite via exit command" 
  433.       exit
  434.     end if
  435.     
  436.   end repeat
  437.   
  438.   norm(it)
  439.   set the castNum of sprite i to theDullSprite
  440.   puppetSprite i,false
  441.   
  442.   --put ">>>end rollover loop"
  443.   updateStage
  444.   
  445.   --put  ">>> exiting showhilite"
  446. end showHilite2
  447.  
  448.  
  449. on doNewPopBAD channel, whatList
  450.   
  451.   --put ">>>doNewPop " && channel && whatList
  452.   
  453.   set num = the number of cast (whatList & " PopUp")
  454.   if num <> -1 then
  455.     set h = the height of cast num
  456.     set w = the width of cast num
  457.   else
  458.     exit
  459.   end if
  460.   
  461.   set c = count(value(field whatList))
  462.   set s = (h - 2) / (c * 1.0)
  463.   
  464.   
  465.   set chan = channel + 10
  466.   set the visibility of sprite chan = 1
  467.   set t = the top of sprite chan
  468.   --updateStage
  469.   
  470.   puppetSprite 26, 1
  471.   set the castNum of sprite 26 = the number of cast (whatList & " PopUpH")
  472.   set the locH of sprite 26 = the left of sprite chan
  473.   set the locV of sprite 26 = the top of sprite chan
  474.   set l = the left of sprite chan
  475.   set r = the right of sprite chan
  476.   
  477.   --put ">>> first rect" & the rect of sprite 26
  478.   set the rect of sprite 26 = rect(0,0,0,0)
  479.   updateStage
  480.   --put ">>> after setting to 0" & the rect of sprite 26
  481.   
  482.   set oldI = 0
  483.   
  484.   repeat while the mouseDown
  485.     
  486.     if rollover(chan) then
  487.       set i = integer(( (the mouseV - t) / s) + 0.5)
  488.       --put ">>> item = " i  
  489.     else
  490.       set i = 0  
  491.     end if
  492.     
  493.     if i < 1 or i > c then set i = -100
  494.     
  495.     if i <> oldI then
  496.       set tNew = ((i-1) * s)
  497.       set the rect of sprite 26 = rect(l, tNew, r, tNew+s) 
  498.       put the rect of sprite 26
  499.       --set the locV of sprite 26 = t + ((i-1) * s)
  500.       updateStage      
  501.       set oldI = i
  502.     end if
  503.     
  504.     --put ">>> locV 26" && the locv of sprite 26
  505.     
  506.   end repeat
  507.   
  508.   --  put the top of sprite 26
  509.   --  put the left of sprite 26
  510.   --  put the castNum of sprite 26
  511.   
  512.   puppetSprite 26, 0
  513.   set the visibility of sprite chan = 0
  514.   
  515.   return i
  516. end doNewPopBAD
  517.  
  518. on doNewPop channel, whatList
  519.   
  520.   --put ">>>doNewPop " && channel && whatList
  521.   
  522.   set num = the number of cast (whatList & " PopUp")
  523.   if num <> -1 then
  524.     set h = the height of cast num
  525.     set w = the width of cast num
  526.   else
  527.     exit
  528.   end if
  529.   
  530.   set c = count(value(field whatList))
  531.   set s = (h - 2) / (c * 1.0)
  532.   
  533.   
  534.   set chan = channel + 10
  535.   puppetSprite chan,0 -- just in case... a spurious bug on 11/10/95 dmd
  536.   updateStage
  537.   set the visibility of sprite chan = 1
  538.   set t = the top of sprite chan
  539.   --updateStage
  540.   
  541.   puppetSprite 26, 1
  542.   set the castNum of sprite 26 = the number of cast (whatList & " PopUpH")
  543.   set the type of sprite 26 = 1
  544.   set the locH of sprite 26 = the left of sprite chan
  545.   set the locV of sprite 26 = -1000
  546.   set the ink of sprite 26 = 36
  547.   
  548.   --put ">>>cast num" && the castnum of sprite 26
  549.   
  550.   set oldI = 0
  551.   
  552.   repeat while the mouseDown
  553.     
  554.     if rollover(chan) then
  555.       set i = integer(( (the mouseV - t) / s) + 0.5)
  556.       --put ">>> item = " i  
  557.     else
  558.       set i = 0  
  559.     end if
  560.     
  561.     if i < 1 or i > c then set i = -100
  562.     
  563.     if i <> oldI then
  564.       set the locV of sprite 26 = t + ((i-1) * s)
  565.       updateStage      
  566.       set oldI = i
  567.     end if
  568.     
  569.     --put ">>> locV 26" && the locv of sprite 26
  570.     
  571.   end repeat
  572.   
  573.   --  put the top of sprite 26
  574.   --  put the left of sprite 26
  575.   --  put the castNum of sprite 26
  576.   
  577.   puppetSprite 26, 0
  578.   set the visibility of sprite chan = 0
  579.   
  580.   return i
  581. end doNewPop
  582.  
  583.  
  584. on hideCOMenus
  585.   repeat with i = 18 to 25
  586.     set the visibility of sprite i = 0
  587.   end repeat  
  588. end hideCOMenus
  589.  
  590. on showCOMenus
  591.   repeat with i = 18 to 25
  592.     set the visibility of sprite i = 1
  593.   end repeat  
  594. end showCOMenus
  595.  
  596.  
  597. on myPop whichSprite, whatList
  598.   
  599.   --put ">>>myPop which, what" && whichSprite && whatList
  600.   
  601.   set it = doNewPop(whichSprite, whatList)
  602.   
  603.   if it > 0 then
  604.     --set oList to [:] 
  605.     set oList to value(field whatList)
  606.     --put ">>>" & oList
  607.     
  608.     set p = getPropAt(oList, it)
  609.     --put ">>> property is: " & p
  610.     goGo(p)
  611.   end if
  612.   
  613.   
  614. end myPop
  615.  
  616. on myPopOLD whichSprite, whichSide, whatList
  617.   --whereAt is left or right
  618.   --whatList is the name of the field which has the list to use
  619.   global oPop, oList, gO
  620.   set oList to [:] 
  621.   set oList to value(field whatList)
  622.   
  623.   newPop()
  624.   
  625.   put empty into popSide
  626.   
  627.   if whichSide = "Left" then
  628.     put the StageLeft-16+popOffset(whatList) into popSide
  629.   else
  630.     put (the right of sprite whichSprite)+ the StageLeft-4 into popSide
  631.   end if
  632.   put (the top of sprite whichSprite)+the StageTop+8 into popTop
  633.   put 0 into defaultItem
  634.   if word 1 of whatList = "Quasars" then put count(oList) into defaultItem
  635.   oPop(mSetItemMark,0)
  636.   
  637.   set it=oPop(mPopNum, popSide, popTop,defaultItem)
  638.   
  639.   --  dmd repeat while the stillDown
  640.   --  dmd end repeat
  641.   
  642.   if it > 0 then
  643.     --put ">>>" & oList
  644.     set p = getPropAt(oList, it)
  645.     --put ">>> property is: " & p
  646.     goGo(p)
  647.   end if
  648.   
  649. end myPopOLD
  650.  
  651. on newPop
  652.   global oPop,oList
  653.   if objectP(oPop) then 
  654.     oPop(mDispose)
  655.   else
  656.     if the machineType = 256 then 
  657.       openXLib "POPMENU.DLL" 
  658.     else 
  659.       openXLib "PopUp Menu XObj"
  660.     end if
  661.   end if
  662.   
  663.   --put ">>> making a popup cast 2 (TOC.DIR)"
  664.   
  665.   set oPop = PopMenu(mNew,dummyList(),999)
  666.   realList
  667. end newPop
  668.  
  669. on dummyList
  670.   global oList
  671.   put empty into it
  672.   repeat with i = 1 to count(oList)
  673.     put getAt(oList,i) into m
  674.     put it&char 1 to 3 of m&";"  into it
  675.   end repeat
  676.   delete the last char of it
  677.   return it
  678. end dummyList
  679.  
  680. on realList
  681.   global oList,oPop
  682.   repeat with i = 1 to count(oList)
  683.     put getAt(oList,i) into m
  684.     if char 1 to 2 of m = "<U" then put char 3 to length(m) of m into m
  685.     oPop(mSetItem,i,m)
  686.   end repeat
  687. end realList
  688.  
  689. on listToMenuItems aList
  690.   put "" into resultList
  691.   repeat with i = 1 to count(aList)
  692.     put resultList&getat(aList,i)&";" into resultList
  693.   end repeat
  694.   delete the last char of resultList
  695.   return resultList
  696. end
  697.  
  698. on popOffset theList
  699.   return getOne([262:"Nebulae",302:"Supernova Remnants",307:"Planetary Nebulae",290:"Globular Star Clusters",302:"Open Star Clusters",288:"Individual Stars"],theList)
  700. end popOffset
  701.  
  702. on myPlay theMovie,theChannel
  703.   if theMovie="TOC" then
  704.     playTOC
  705.   else   if theMovie="it" then
  706.     playit
  707.   else if theMovie="it" then
  708.     playit
  709.   end if
  710. end myPlay
  711.  
  712. on setPreloads
  713.   -- use for this movie only
  714.   -- birth with sbc
  715.   global gLastPreloadStartFrame, gLastPreloadEndFrame, gPreloadList, gPreloadIndex
  716.   set gLastPreloadStartFrame to 0
  717.   set gLastPreloadEndFrame to 0
  718.   if voidP(gPreloadList) then 
  719.     set gPreloadList to []
  720.     set gPreloadIndex to []
  721.     setPreload("TOC","TOC","TOC")
  722.     setPreload("TOC","O","OM")
  723.     setPreload("TOC","T","TM")
  724.     setPreload("TOC","P","PM")
  725.     setPreload("TOC","S","SM")
  726.     setPreload("TOC","M","MM")
  727.     setPreload("TOC","U","UM")
  728.     setPreload("TOC","OM","OM")
  729.     setPreload("TOC","TM","TM")
  730.     setPreload("TOC","PM","PM")
  731.     setPreload("TOC","SM","SM")
  732.     setPreload("TOC","MM","MM")
  733.     setPreload("TOC","UM","UM")
  734.     setPreload("TOC","ON","ONM")
  735.     setPreload("TOC","OS","OSM")
  736.     setPreload("TOC","OQ","OQM")
  737.     setPreload("TOC","OO","OOM")
  738.     setPreload("TOC","OG","OGM")
  739.   end if
  740.   
  741. end setPreloads
  742.  
  743. on setPreload myMovieName,frameName,endFrame
  744.   global gPreloadList, gPreloadIndex
  745.   --  append gPreloadList, birth(script "ppl",myMovieName,frameName,frameName,endFrame)
  746.   --  append gPreloadIndex, frameName
  747. end
  748.  
  749. on fifi whichMovie
  750.   --put ">>>fifi was clicked in movie"&&whichMovie
  751. end fifi
  752.  
  753. on tracexxx whichMovie
  754.   --put ">>>trace was clicked in movie"&&whichMovie
  755.   retrace
  756. end trace
  757.  
  758. on contentsxxx whichMovie
  759.   --put ">>>contents was clicked in movie"&&whichMovie
  760.   doContents
  761. end contents